odoo.define("web_debranding.base", function(require) {
    "use strict";
    var Model = require("web.Model");
    var WebClient = require("web.WebClient");

    WebClient.include({
        init: function() {
            this._super.apply(this, arguments);
            var self = this;
            this.set("title_part", {zopenerp: ""});
            odoo.debranding_new_name = "";
            odoo.debranding_new_website = "";
            odoo.debranding_new_title = "";
            var model = new Model("ir.config_parameter");
            model.call("get_debranding_parameters").then(function(result) {
                odoo.debranding_new_name = result["web_debranding.new_name"];
                odoo.debranding_new_website = result["web_debranding.new_website"];
                odoo.debranding_new_title = result["web_debranding.new_title"];
                self.set("title_part", {zopenerp: odoo.debranding_new_title});
            });
        },
    });
});
